package com.suxin.chain.Interceptor;

import com.suxin.chain.Chain;
import com.suxin.chain.domain.ContractRequest;
import com.suxin.chain.domain.ContractResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: tang
 * @Description:
 * @Date 2024/6/20 10:15
 */
@Slf4j
@Component
public class ContractSignCompactInitImpl<T extends ContractRequest> implements Interceptor<T, ContractResponse> {

    @Override
    public ContractResponse interceptor(Chain<T, ContractResponse> chain) {

        log.info("=============执行合同文本初始化拦截器开始");
        T request = chain.request();

        // do something...

        log.info("=============执行合同文本初始化拦截器结束");

        return chain.proceed(request);
    }
}
